import Layout from '@/layout'

export default {
  path: '/employees', // 路径
  name: 'employees', // 名字
  component: Layout, // 组件
  // 配置二级路由
  children: [{
    path: '',
    component: () => import('@/views/employees'),
    name: 'employees',
    // 路由元信息 设置标题
    meta: { title: '员工信息', icon: 'people' }
  },
  {
    path: 'detail/:id', // 动态传参
    component: () => import('@/views/employees/detail'),
    hidden: true, // 不在左侧菜单显示
    meta: {
      title: '员工详情'
    }
  },
  {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true,
    meta: {
      title: '打印',
      icon: 'people'
    }
  }
  ]
}
